package com.juzipi.common.utils.encrypt;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 解密类
 */

public class Decrypt {
    public static void main(String[] args) {
        BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
        System.out.println(passwordEncoder.matches("pass", "$2a$10$CsxOITPkfTTtIIcxCn0.qu5uHldM0vM0rSQRXxb.EWAKscpGkwto6"));
        System.out.println(passwordEncoder.encode("1234"));
    }
}
